export interface GetHospitalSetListParams {
  page: number;
  limit: number;
  hosname?: string;
  hoscode?: string;
}

export type FormValues = Pick<GetHospitalSetListParams, "hosname" | "hoscode">;

/*
  测试接口，得到的数据：
    {
      "records": [
        {
          "id": 318041,
          "createTime": "2024-03-19 20:40:45",
          "updateTime": "2024-03-19 20:40:45",
          "isDeleted": 0,
          "param": {},
          "hosname": "南京",
          "hoscode": "8955",
          "apiUrl": "路径",
          "signKey": "526fc543cfe119cd67e3967f31fa4375",
          "contactsName": "藏",
          "contactsPhone": "18526485952",
          "status": 1
        }
      ],
      "total": 12,
      "size": 1,
      "current": 1,
      "orders": [],
      "hitCount": false,
      "searchCount": true,
      "pages": 12
    }
*/

export type AddHospitalSetParams = Omit<HospitalSetItem, "id" | "signKey">;

export type UpdateHospitalSetParams = Omit<HospitalSetItem, "signKey">;
export interface HospitalSetItem {
  id: number;
  // createTime: "2022-01-18 10:53:10";
  // updateTime: "2023-06-04 18:05:56";
  // isDeleted: 0;
  // param: {};
  hosname: string;
  hoscode: string;
  apiUrl: string;
  signKey: string;
  contactsName: string;
  contactsPhone: string;
  // status: 1;
}

export type HospitalSetList = HospitalSetItem[];

export interface GetHospitalSetListResponse {
  records: HospitalSetList;
  total: number;
  // size: 1;
  // current: 1;
  // orders: [];
  // hitCount: false;
  // searchCount: true;
  // pages: 12;
}
